import request from '@/utils/request'

// 获取 色调 风格 场景
export const httpGetCategories = (
  params: IPptApi.Request.CategoriesType,
): Promise<IPptApi.Response.ResponseCate> => {
  return request({
    url: '/ppt/template/categories',
    method: 'get',
    params,
  })
}
// 获取模板列表
export const httpGetTemplates = (
  params: IPptApi.Request.TemplateRequest,
  path: 'show' | 'history',
): Promise<IPptApi.Response.ResponseTemplate> => {
  return request({
    url: `/ppt/template/${path}`,
    method: 'GET',
    params,
  })
}


